import Cookie from 'js-cookie';

class CookieUtil {
  setCookie(name: string, value: string, expire: number=7) {
    Cookie.set(name, value, { expires: expire });
  }

  getCookie(name: string) {
    return Cookie.get(name);
  }

  removeCookie(name: string) {
    Cookie.remove(name);
  }
}

export default new CookieUtil();